<?php
namespace Admin\Controller;
use Think\Controller;

class SetTimeController extends Controller
{
    public function index(){
        $startdate=strtotime('2016-05-28');
        $enddate=strtotime('2016-05-30');
        $days=round(($enddate-$startdate)/86400)+1;
        echo $days;
    }
}

?>